﻿@model GameSchool.Models.ViewModels.UserProfileModel
<link rel="stylesheet" type="text/css" href="/Content/css/forms.css" />

@using (Html.BeginForm("Profile", "User", FormMethod.Post, new { enctype="multipart/form-data" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Notendaprófíll</legend>

        <div class="editor-label">
            @Html.HiddenFor(model => model.userID)
        </div>

        <div class="editor-label">
            <h2>Kennitala:</h2>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SSN)
            @Html.ValidationMessageFor(model => model.SSN)
        </div>

        <div class="editor-label">
            <h2>Fullt nafn:</h2>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label">
            <h2>Farsími:</h2>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Mobile)
            @Html.ValidationMessageFor(model => model.Mobile)
        </div>

        <div class="editor-label">
            <h2>Heimilisfang:</h2>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Address)
        </div>

        <div class="editor-label">
            <h2>Afmælisdagur:</h2>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DateOfBirth)
            @Html.ValidationMessageFor(model => model.DateOfBirth)
        </div>

        <div class="editor-label">
            <h2>Mynd:</h2>
        </div>
        <div class="editor-field">
            <input type="file" name="Picture" id="Picture" />
        </div>

           <section class="buttonfield"> 
        <section class="one-third last">
                <input type="submit" value="Vista" class="sendbutton" name="sendbutton" /> 
             </section>  
             <!--ÞARF AÐ LAGA TAKKANN-->
        <section class="one-third">       
                 <a href="@Url.Action("Index", "Home")"><button class="backbutton">Hætta við</button></a>
             </section>
        </section>
    </fieldset>
}


